package com.server.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.StringJoiner;

/**
 * The type Orders.
 */
public class Orders {
    private Integer ordersId;

    private Integer moviesInfo;

    private Integer userInfo;

    private String moviesSeat;

    private Integer ordersType;

    private BigDecimal ordersPrice;

    private Boolean isFully;

    private Date orderCreatedTime;

    private Date orderFieldTime;

    public Orders(Integer moviesInfo, Integer userInfo, String moviesSeat, Integer ordersType, BigDecimal ordersPrice, Boolean isFully, Date orderCreatedTime, Date orderFieldTime) {
        this.moviesInfo = moviesInfo;
        this.userInfo = userInfo;
        this.moviesSeat = moviesSeat;
        this.ordersType = ordersType;
        this.ordersPrice = ordersPrice;
        this.isFully = isFully;
        this.orderCreatedTime = orderCreatedTime;
        this.orderFieldTime = orderFieldTime;
    }

    public Orders() {
    }

    /**
     * Gets orders id.
     *
     * @return the orders id
     */
    public Integer getOrdersId() {
        return ordersId;
    }

    /**
     * Sets orders id.
     *
     * @param ordersId the orders id
     */
    public void setOrdersId(Integer ordersId) {
        this.ordersId = ordersId;
    }

    /**
     * Gets movies info.
     *
     * @return the movies info
     */
    public Integer getMoviesInfo() {
        return moviesInfo;
    }

    /**
     * Sets movies info.
     *
     * @param moviesInfo the movies info
     */
    public void setMoviesInfo(Integer moviesInfo) {
        this.moviesInfo = moviesInfo;
    }

    /**
     * Gets user info.
     *
     * @return the user info
     */
    public Integer getUserInfo() {
        return userInfo;
    }

    /**
     * Sets user info.
     *
     * @param userInfo the user info
     */
    public void setUserInfo(Integer userInfo) {
        this.userInfo = userInfo;
    }

    /**
     * Gets movies seat.
     *
     * @return the movies seat
     */
    public String getMoviesSeat() {
        return moviesSeat;
    }

    /**
     * Sets movies seat.
     *
     * @param moviesSeat the movies seat
     */
    public void setMoviesSeat(String moviesSeat) {
        this.moviesSeat = moviesSeat == null ? null : moviesSeat.trim();
    }

    /**
     * Gets orders type.
     *
     * @return the orders type
     */
    public Integer getOrdersType() {
        return ordersType;
    }

    /**
     * Sets orders type.
     *
     * @param ordersType the orders type
     */
    public void setOrdersType(Integer ordersType) {
        this.ordersType = ordersType;
    }

    /**
     * Gets orders price.
     *
     * @return the orders price
     */
    public BigDecimal getOrdersPrice() {
        return ordersPrice;
    }

    /**
     * Sets orders price.
     *
     * @param ordersPrice the orders price
     */
    public void setOrdersPrice(BigDecimal ordersPrice) {
        this.ordersPrice = ordersPrice;
    }

    /**
     * Gets is fully.
     *
     * @return the is fully
     */
    public Boolean getIsFully() {
        return isFully;
    }

    /**
     * Sets is fully.
     *
     * @param isFully the is fully
     */
    public void setIsFully(Boolean isFully) {
        this.isFully = isFully;
    }

    /**
     * Gets order created time.
     *
     * @return the order created time
     */
    public Date getOrderCreatedTime() {
        return orderCreatedTime;
    }

    /**
     * Sets order created time.
     *
     * @param orderCreatedTime the order created time
     */
    public void setOrderCreatedTime(Date orderCreatedTime) {
        this.orderCreatedTime = orderCreatedTime;
    }

    /**
     * Gets order field time.
     *
     * @return the order field time
     */
    public Date getOrderFieldTime() {
        return orderFieldTime;
    }

    /**
     * Sets order field time.
     *
     * @param orderFieldTime the order field time
     */
    public void setOrderFieldTime(Date orderFieldTime) {
        this.orderFieldTime = orderFieldTime;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Orders.class.getSimpleName() + "[", "]")
                .add("ordersId=" + ordersId)
                .add("moviesInfo=" + moviesInfo)
                .add("userInfo=" + userInfo)
                .add("moviesSeat='" + moviesSeat + "'")
                .add("ordersType=" + ordersType)
                .add("ordersPrice=" + ordersPrice)
                .add("isFully=" + isFully)
                .add("orderCreatedTime=" + orderCreatedTime)
                .add("orderFieldTime=" + orderFieldTime)
                .toString();
    }
}